function deep(node) {
    let result = []
    let dep = 0;
    function dfs(node, dep) {
        if (!node) return
        if (!result[dep]) result[dep] = [] // 添加
        result[dep].push(node.val)
        let children = node.children;
        if (children.length) {
            children.forEach(item => dfs(item, dep + 1))
        }
    }
    dfs(node, dep)
    return result
}

function dfs(){
    
}
